package com.vince.service;

import com.vince.service.OrderService;
import com.vince.spring.Autowired;
import com.vince.spring.BeanNameAware;
import com.vince.spring.Component;


@Component("orderService")
//@Scope("prototype") //多例
public class OrderServiceImpl implements OrderService, BeanNameAware {

    @Autowired
    UserServiceImpl userService;

    private String beanName;

    @Override
    public void setBeanName(String beanName) {
        this.beanName = "orderService";
    }

    public void submitOrder(){
//        userService.sayHello();
        System.out.println("下单。。。");
    }

    public void delOrder(){
        System.out.println("退单。。。");
    }

}
